package com.leng.account.controller;

import com.leng.account.service.AccountService;
import com.leng.common.entity.Account;
import com.leng.common.response.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 *@作者: 冷俊杰
 *@类名: UserController类
 *@创建时间: 2022/9/28 15:42
 *@描述:
 *
 *
 *@修改原图
 *@修改作者
 *@修改时间
 */
@RestController
public class AccountController {
    @Autowired
    private AccountService service;

    @GetMapping("/getAccountList")
    public Result getAccountList(){
        List<Account> list = service.list();
        return Result.ok().data("users",list);
    }
}
